<html>
 <head>
   <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
  <title>Where Are We Going Today?</title>
 </head>
  <body>
    <center><h1>Where Are We Going Today?</h1></center>
     <div>
      {% if admin %}
        {{logged_in|escape}} is logged in as an administrator.
      {% else %}
      {{logged_in|escape}} is logged in. 
      {% endif %}
      <br><br>
     </div>
      {% for message in messages %}
        {% if message.author %}
           <b>{{ message.author.nickname }}</b> wrote:
        {% else %}
           An anonymous person wrote:
        {% endif %}
        <blockquote>{{ message.content|escape }}<br> {{ message.date|date:"D d M Y H:i"}}</blockquote>
      {% endfor %}

    <form action="/sign" enctype="multipart/form-data" method="post">
            <div><label>Message:</label></div>
            <div><textarea name="content" rows="3" cols="60"></textarea></div>
            <br>
            <div><input type="submit" value="Send Message"></div>
          </form>
    <a href="{{ url }}">{{ url_linktext }}</a>
  </body>
</html>
